package com.xn.service;

import com.xn.mapper.StockMapper;
import com.xn.model.Stock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockService {

    @Autowired
    private StockMapper stockMapper;


    public Boolean lockStock(){
        System.out.println("come in ");
        Stock stock = new Stock();
        stock.setStockNum(9);
        stockMapper.insert(stock);
        return true;
    }
}
